<?php

/**
 * Area form.
 *
 * @package    upv
 * @subpackage form
 * @author     cetcos.org
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class InicioForm extends BaseForm
{
	public function configure()
	{
		parent::configure();
 
		$this->setWidgets(array(
			'correo'        => new sfWidgetFormInput(),
			'contrasena'  => new sfWidgetFormInputPassword(),
		));    
 
		$this->setValidators(array(
			'correo'        => new sfValidatorEmail(array('required'=>true), array('required'=>'El correo es obligatorio')),
			'contrasena'  => new sfValidatorString(array('required'=>true), array('required'=>'Escribe tu contraseña')),
		));
 
		$this->widgetSchema->setNameFormat('inicio[%s]');
		$this->widgetSchema->setFormFormatterName('list');
	}
}
